import React, { Component } from 'react';
import { Routes,  Route } from "react-router-dom";

import Login from '../pages/login/login';
import Index from '../pages/index';
import Details from '../pages/songsDetails/details';
import Test from '../pages/songsDetails/test';

export default class Router extends Component {
    render() {
        return (
            <Routes>
                <Route path='/login' element={<Login />}></Route>
                <Route path='/index' element={<Index />}></Route>
                <Route path='/index/details' element={<Details />} />
                <Route path='/test' element={<Test />}></Route>
                <Route path="*" element={<Index />} />
            </Routes>
        )
    }
}